﻿@model IEnumerable<Senac.ProjetoIntegrador.EducacaoWeb.Models.Boletim>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<p>
    @Html.ActionLink("Create New", "Create")
</p>
<table>
    <tr>
        <th>
            Pontuacao
        </th>
        <th>
            Acertos
        </th>
        <th>
            Erros
        </th>
        <th>
            Atividade
        </th>
        <th>
            Aluno
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Pontuacao)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Acertos)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Erros)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Atividade.Nome)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Aluno.Nome)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.BoletimID }) |
            @Html.ActionLink("Details", "Details", new { id=item.BoletimID }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.BoletimID })
        </td>
    </tr>
}

</table>
